import request from "@/utils/request";

// 查询员工信息列表
export function listCharge(query) {
  return request({
    url: "/employee/list",
    method: "get",
    params: query,
  });
}
// 查询员工信息列表无分页
export function getListCharge(query) {
  return request({
    url: "/employee/data",
    method: "get",
    params: query,
  });
}




// 查询员工信息详细
export function getCharge(id) {
  return request({
    url: "/employee/" + id,
    method: "get",
  });
}

// 新增员工信息
export function addCharge(data) {
  return request({
    url: "/employee",
    method: "post",
    data: data,
  });
}

// 修改员工信息
export function updateCharge(data) {
  return request({
    url: "/employee",
    method: "put",
    data: data,
  });
}

// 删除员工信息
export function delCharge(id) {
  return request({
    url: "/employee/" + id,
    method: "delete",
  });
}

// 调用员工
export function postDefinitionStart(data) {
  return request({
    url: "/transfer",
    method: "post",
    data:data,
  });
}

// 调用员工列表
export function getTransferList(query) {
  return request({
    url: "/transfer/list",
    method: "GET",
    params: query,
  });
}

// 调用员工列表
export function getUser(data) {
  return request({
    url: "/employee/post",
    method: "GET",
  });
}

// 员工岗位统计
export function getStatistics(data) {
  return request({
    url: "employee/personnelStatistics",
    method: "GET",
  });
}

